package com.gqzdev.xblog;

import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;

/**
 * Servlet容器启动
 * 打包成war应用，需要这个配置 启动tomcat容器应用
 *      实现WebApplicationInitializer接口
 */

public class ServletInitializer extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        return application.sources(XblogApplication.class);
    }

}
